package cn.com.guage.dtm.huawei;

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class HJ11_数字颠倒 {
    public static void main(String[] args) {
      //  method1();
        method2();
    }

    private static void  method1(){
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        long line = in.nextLong();
        String str = String.valueOf(line);
        String[] array = str.split("");
        for(int i=array.length-1;i>=0;i--){
            System.out.print(array[i]);
        }
    }
    private static void  method2(){
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        StringBuffer strb = new StringBuffer(str);
        strb.reverse();
        System.out.println(strb.toString());
    }

}
